# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        Young  
# Name:         task11_2
# Description:
# Author:       $赵怡蕾
# Date:         2019/4/7
#-------------------------------------------------------------------------------

# 编写一个正则表达式，匹配信用卡号，格式如下
# xxxx xxxx xxxx xxxx

import re
n=input('请输入信用卡号：')
s='\d{4}-\d{4}-\d{4}-\d{4}'
m=re.search(s,n)
if m is not None:
    print('{}匹配成功'.format(m.group()))
else:
    print('{}不匹配'.format(n))